type TypStuobj = {
    username: string,
    age: number,
    phone: string
}

function info(stuObj: TypStuobj) {
    console.log("name", stuObj.username, "age", stuObj.age);
    return 3

}

let stuObj: TypStuobj = {
    username: "张三",
    age: 18,
    phone: "13888888888"
}
info(stuObj)

// 函数解构
function subInfo({ username, age }: TypStuobj) {
    console.log("name", username, "age", age);
    return 3
}
subInfo({
    username: "张三",
    age: 18,
    phone: "13888888888"
})

export { }